package com.tensquare.notice.client;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author wz
 * @company 公司
 * @create 2020-02-17 10:31
 */
//告诉他调用哪个微服务
@FeignClient("tensquare-article")
public interface ArticleClient {
    @GetMapping("article/{id}")
    public Result findById(@PathVariable("id") String id);
}
